package com.frogs.ucenter.v1.response;

import java.util.HashMap;
import java.util.Map;

import com.frogs.system.web.api.response.Response;


public class UploadImgResponse extends Response {

	private static final long serialVersionUID = -8397333781433646056L;
	//返回结果参数，无需定义实体
	private Map<String,Object> result = new HashMap<String,Object>(); 
	
	public UploadImgResponse() {
		super();
		putValue("uploadResult", "success");
		putValue("imgPaths", new String[]{});
		
	}
	
	public Map<String, Object> getResult() {
		return result;
	}

	public void setResult(Map<String, Object> result) {
		this.result = result;
	}

	
	public void putValue(String key,Object value){
		result.put(key, value);
	}
	
	public Object getValue(String key) {
		return result.get(key);
	}
	
	public void putImgPaths(Object paths) {
		result.put("imgPaths", paths);
	}
	
	public void putUploadResult(String uploadResult) {
		result.put("uploadResult", uploadResult);
	}
}
